stack sidebar: Drop the .sidebar-item style class
authorMatthias Clasen <mclasen@redhat.com>
Thu, 5 Nov 2015 13:18:06 +0000 (08:18 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 5 Nov 2015 13:18:06 +0000 (08:18 -0500)
It is not needed to achieve the desired theming.

gtk/gtkstacksidebar.c

index ba5a773e7f0145158e5b19c7331567fbaa9e7d68..eed6709baa3a80ea995680ff3d4623ff90fc56dd 100644 (file)
  *
  * # CSS nodes
  *
- * GtkStackSidebar has a single CSS node with name stacksidebar.
+ * GtkStackSidebar has a single CSS node with name stacksidebar and
+ * style class .sidebar.
+ *
+ * When circumstances require it, GtkStackSwitcher adds the
+ * .needs-attention style class to the widgets representing the stack
+ * pages.
  *
  * Since: 3.16
  */
@@ -291,10 +296,6 @@ add_child (GtkWidget       *widget,
 
   update_row (sidebar, widget, row);
 
-  /* Fix up styling */
-  style = gtk_widget_get_style_context (row);
-  gtk_style_context_add_class (style, "sidebar-item");
-
   /* Hook up for events */
   g_signal_connect (widget, "child-notify::title",
                     G_CALLBACK (on_child_updated), sidebar);